﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MySSH.Domain.Entities;
using System.Data;

namespace MySSH.IDAL
{
    public partial interface IDALModule : IDALBase<Module>
    {
        /// <summary>
        /// 根据用户信息获取系统菜单
        /// </summary>
        /// <param name="userID">用户ID</param>
        /// <param name="loginID">登录ID</param>
        /// <param name="pwd">密码</param>
        /// <returns></returns>
        DataSet GetSysMenuByUser(int userID, string loginID, string pwd);

        /// <summary>
        /// 根据父级ID获取模块
        ///     主要用于TreePanel的数据绑定
        /// </summary>
        /// <param name="parentID">角色的父级ID</param>
        /// <returns></returns>
        DataTable GetModelByParentID(int parentID);
    }
}
